﻿/**
 *
 * load.h
 *
 *  Created on: 2019-12-03
 *      Author: chenshisheng
 */

#ifndef LOAD_H_
#define LOAD_H_

#include "main.h"
#include "shell.h"

#define LOAD_SENSOR_NUM 4

typedef struct
{
    unsigned int statusBits;
    float weight;                  // 总重量
}Load_Info_t;

typedef struct
{
    int32_t adcs[LOAD_SENSOR_NUM];
}Load_SensorRaw_t;

void Load_Init(void);
int Load_GetInfo(Load_Info_t *info, Load_SensorRaw_t *raw);
int Load_ShellCmd(Stream_t *stream, int argc, char *argv[]);

#endif /* LOAD_H_ */
